package com.example.courseorder.repository.impl;


import com.example.courseorder.domain.Student;
import com.example.courseorder.repository.StudentRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;

@Repository
public class StudentDao {
    @Autowired
    @Qualifier("studentRepository")
    private StudentRepository studentRepository;
    public Student add(Student student) {
        System.out.println("这里"+student);
        studentRepository.save(student);
        return student;
    }



}
